// 实时更新file Id
// stores/DirStore.js
import { defineStore } from 'pinia'

export const useDirStore = defineStore('dir', {
  state: () => ({
    currentDirId: '/index'   // 默认值与 File.vue 一致
  }),
  actions: {
    setCurrentDir(id) {
      this.currentDirId = id
    }
  }
})